package com.yizhang.principle.dependencyinversion;

/**
 * @Author: yi.zhang
 * @CreateTime: 2025-08-21 14:17:12
 * @Description: 依赖倒置原则
 */
public class Test {
    public static void main(String[] args) {
//        Tom tom = new Tom();
//        tom.studyJava();
//        tom.studyPython();

        // 顶层抽象 依赖接口编程
        Tom tom = new Tom();
        tom.setCourse(new JavaCourse());
        tom.study();
    }
}
